package com.tanhua.manager.job;

import com.tanhua.manager.service.SummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class LogJob {
    @Autowired
    private SummaryService summaryService;

    @Scheduled(cron = "0 0/30 * * * ?")
    public void logJob(){
        summaryService.analysis();

    }
}
